package com.softeem.ssm1.dao;

import com.softeem.ssm1.entity.Department;

import java.util.List;

public interface DepartmentMapper {

    /**
     * 添加专业
     * @param dept
     * @return
     */
    int insert(Department dept);

    /**
     * 根据id查询专业
     * @param id
     * @return
     */
    Department selectById(Integer id);

    /**
     * 查询所有专业
     * @return
     */
    List<Department> selectAll();
}
